home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 254 / SOMC Family Forum 254 - Disc 1.iso / FBPRO97 / ZIPLEG.BAT < prev   
DOS Batch File  |  1996-09-11  |  1KB  |  55 lines

  1. @echo off
  2.  
  3. if %1!==! goto needparm
  4. if %2!==! goto needparm
  5.  
  6. if "%1"=="a" goto drive
  7. if "%1"=="A" goto drive
  8. if "%1"=="b" goto drive
  9. if "%1"=="B" goto drive
  10. if "%1"=="a:" goto drivecol
  11. if "%1"=="A:" goto drivecol
  12. if "%1"=="b:" goto drivecol
  13. if "%1"=="B:" goto drivecol
  14.  
  15. pkzip -rp %1 %2*.* -x*.zip
  16. goto end
  17.  
  18. :drive
  19. if %3!==! goto needparm
  20. if "%3"=="*" goto needparm
  21. pkzip -rp -&v %1:%2 %3*.* -x*.zip
  22. goto end
  23.  
  24. :drivecol
  25. if %3!==! goto needparm
  26. if "%3"=="*" goto needparm
  27. pkzip -rp -&v %1%2 %3*.* -x*.zip
  28. goto end
  29.  
  30. :needparm
  31. echo.
  32. echo  ZIPLEG will backup an entire league in progress, including the highlight
  33. echo  files, using PKWare's PKZIP file compression software. You must have the
  34. echo  PKZIP (version 2.x or higher) program in your computer's file search path.
  35. echo.
  36. echo  The proper syntax is:
  37. echo.
  38. echo     ZIPLEG [floppy drive] ZIPFILE LEAGUE
  39. echo.
  40. echo        [floppy drive] is an optional floppy drive letter 
  41. echo        ZIPFILE is the name of the ZIP file you wish to create.  
  42. echo        LEAGUE is the unique portion of the association's filename.
  43. echo.
  44. echo  Example:  ZIPLEG A: NFLBAK NFL
  45. echo.
  46. echo   will zip all leagues that have a filename that begins with NFL into a 
  47. echo   file on your A: drive using the name NFLBAK.ZIP.
  48. echo.
  49. echo   Specifying "NFLPI96" would get all leagues that have a filename that 
  50. echo   begins with "NFLPI96".
  51. echo.
  52. echo  use UNZIPLEG to unzip leagues.
  53. echo.
  54. :end
  55.